//
//  JKDemoViewController.swift
//  新浪微博
//
//  Created by Jack.Lin on 16/6/29.
//  Copyright © 2016年 Jack.Lin. All rights reserved.
//

import UIKit

class JKDemoViewController: JKBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第 \(navigationController?.childViewControllers.count ?? 0) 个"
    }
    
    
    @objc private func showNext() {
    
        let vc = JKDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }

}
    
extension JKDemoViewController {

    override func setupTableView() {
        super.setupTableView()
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
    }
}


